const mongoose = require('mongoose')

mongoose.connect("mongodb://localhost:27017/music-system")
.then(()=>{          //then（）接收连接的端口 
    console.log('mongodb has been connected.');
})